﻿using System.ComponentModel.Composition;
using System.Windows.Controls;

namespace YunBox2.Client.Infrastructure
{
	/// <summary>
	/// HomePage.xaml 的交互逻辑
	/// </summary>
	[Export("HomePage",typeof (HomePage))]
	public partial class HomePage : UserControl
	{
		public HomePage()
		{
			InitializeComponent();
		}

		[Import(typeof(ViewModels.HomeViewModel))]
		ViewModels.HomeViewModel ViewModel
		{
			get
			{
				return (ViewModels.HomeViewModel) DataContext;
			}
			set
			{
				DataContext = value;
			}
		}
	}
}